Skip to content

Instantly share code, notes, and snippets.

@kotler-dev
kotler-dev / PROJECT_CONCEPT_FOR_AI.md
Created January 23, 2026 18:33
Концепция Project — Инструкция для AI-ассистентов

Концепция Project — Инструкция для AI-ассистентов

Универсальная инструкция для AI-ассистентов (Cursor, GitHub Copilot, Claude и аналогичных) по созданию системы управления фичами проекта через файловую систему.

Назначение: Передайте этот документ AI-ассистенту, чтобы он воспроизвел концепцию project в вашем проекте с новыми названиями, сохранив структуру и принципы.

Структура

Создайте директорию project/ в корне вашего проекта со следующей структурой:

@oguretsss
oguretsss / ControlPathResolver.cs
Last active January 23, 2026 18:50
Unity component to update controls icon dynamically in UI
public class ControlPathResolver
{
public string ResolveInteractControlPath(InputAction action, string currentControlScheme, out string fallbackText)
{
fallbackText = "";
if (action == null) return "";
Debug.Log($"{nameof(ControlPathResolver)}: looking for {action}. Scheme: {currentControlScheme}");
int bindingIndex = FindBestBindingIndex(action, currentControlScheme);
@SQLJames
SQLJames / proxmox-realtek.md
Last active January 23, 2026 18:48
proxmox realtek driver issues

Edit 2

Here are the steps I took to upgrade my nodes when the time came. Make sure that your apt upgrade and apt dist-upgrade don't have any errors.

Additionally, on one of my nodes, I had to confirm the grub install location. So It may be good to do this prior to upgrading by confirming the mount point of your boot disk.

apt remove --purge r8168-dkms -y
rm /etc/modprobe.d/blacklist-r8169.conf
sudo sed -i 's/GRUB_CMDLINE_LINUX="r8168.aspm=0 r8168.eee_enable=0 pcie_aspm=off loglevel=3"/GRUB_CMDLINE_LINUX=""/' /etc/default/grub
update-grub
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 23, 2026 18:46
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@c0m4r
c0m4r / vyos_installation_hetzner_cloud.md
Last active January 23, 2026 18:45
VyOS installation on Hetzner Cloud VPS

VyOS installation on Hetzner Cloud VPS

This guide explains how to install the VyOS Rolling Release (free nightly builds) on Hetzner Cloud VPS. This might also work for other VPS providers with the proper rescue system in place.

First log into Hetzner Cloud, switch to your VPS control panel, select Rescue -> Enable Rescue and Power Cycle. It takes up to 1 minute to boot into rescue mode. Your login details will be displayed in the control panel after you activate the console. You can also use previously defined SSH keys.

Hetzner Rescue SSH

Download and write the ISO image in the Rescue environment:

@kostyay
kostyay / settings.json
Created January 23, 2026 08:57
Claude Code notifications
// Add this to your settings.json
// brew install terminal-notifier
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
@yasirkula
yasirkula / WavyImage.cs
Last active January 23, 2026 18:43
Create UI image with wave animation in Unity
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER
using UnityEngine.U2D;
#endif
#if UNITY_EDITOR
using UnityEditor;
@sinashahoveisi
sinashahoveisi / understanding-vast.md
Last active January 23, 2026 18:42
This article delves into the nuances of VAST, its functionalities, and its impact on the advertising industry.

Understanding VAST: The Standard for Video Ad Serving

Introduction

Video Ad Serving Template (VAST) stands as a pivotal standard in the dynamic landscape of digital advertising, serving as a structured framework for delivering video ads to diverse video players. Using an XML schema, VAST transfers important metadata about an ad from the ad server to a video player. Developed and maintained by the Interactive Advertising Bureau (IAB), VAST has been instrumental in shaping the communication protocols between ad servers and video players since its inaugural release in 2008. This article delves into the nuances of VAST, its functionalities, and its impact on the advertising industry.

What is a VAST?

@Dobby233Liu
Dobby233Liu / gtimedToSRT.js
Last active January 23, 2026 18:42
Translates YouTube timed text to SRT. WTFPL. WIP.
// parse-ms
// MIT License, copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
// Modified by Dobby233Liu in slight cooperation with MIT License
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,

I found a way to disable Google Discover completely on miui home screen (like on previous versions, disables the swipe left).

adb shell settings put system open_personal_assistant 0

or you can type as root on any terminal

settings put system open_personal_assistant 0

to disable Swipe up to search in the home screen